package cn.wolfcode.trip.base.util;

import lombok.Getter;

@Getter
public class JsonResult {
    // 状态
    private boolean success = true;
    // 错误信息
    private String errorMSG;
    // 成功返回的数据
    private Object data;

    public void setData(Object data) {
        this.data = data;
    }

    public void mark(String errorMSG) {
        success = false;
        this.errorMSG = errorMSG;
    }
}
